var express = require('express')
var app = express()
var api = require('./router/api')

app.set('port', (process.env.port || 3000))

app.use(api)

app.listen(app.get('port'), function () {
  console.log('Visit http://localhost:' + app.get('port'))
})
